//
//  TongViewController.m
//  HIGHT
//
//  Created by 夜空 on 2017/11/2.
//  Copyright © 2017年 夜空. All rights reserved.
//

#import "TongViewController.h"

@interface TongViewController ()
@property (nonatomic,strong)UIScrollView *scrollV;

@end

@implementation TongViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor whiteColor];
    
    
    

    
    
    
    
    
    UILabel * backlabel=[[UILabel alloc] init];
    backlabel.backgroundColor=[UIColor lightGrayColor];
    [self.view addSubview:backlabel];
    [backlabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(self.view.mas_bottom).offset(-20);
        make.top.mas_equalTo(0);
        make.left.mas_equalTo(0);
        make.width.mas_equalTo(UISCREEN_WIDTH);
    }];
    
    _scrollV = [[UIScrollView alloc] init];
    [_scrollV setBackgroundColor:[UIColor orangeColor]];
    [_scrollV setBounces:NO];
    _scrollV.backgroundColor=[UIColor orangeColor];
    [_scrollV setContentSize:CGSizeMake(320*kScreenWidthRatio, 10000*kScreenHeightRatio)];
    [self.view addSubview:_scrollV];
    [_scrollV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(self.view.mas_bottom).offset(-34);
        make.top.mas_equalTo(0);
        make.left.mas_equalTo(0);
//        make.height.mas_equalTo(400*kScreenHeightRatio);
        make.width.mas_equalTo(UISCREEN_WIDTH);
    }];
    
    UILabel * firstlabel=[[UILabel alloc] init];
    firstlabel.backgroundColor=[UIColor purpleColor];
    [self.scrollV addSubview:firstlabel];
    [firstlabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.mas_equalTo(30*kScreenHeightRatio);
        make.top.mas_equalTo(0);
        make.left.mas_equalTo(0);
        make.width.mas_equalTo(UISCREEN_WIDTH);
    }];
    
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
